<extend name="Public:main" />

<block name="cssjs"></block>

<block name="area">
<li><a href="#">分类列表</a></li>
</block>

<block name="content">
&nbsp;&nbsp;&nbsp;<a href="__CONTROLLER__/cateadd" class="btn">添加分类</a>
    <div class="rightinfo">

		<table class="imgtable">
			<thead>
				<tr>
				<th>ID</th>
				<th>所属分类</th>
				<th>分类标题</th>
				<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<if condition="$data neq null">
				<foreach item="list" name="data">
					<tr style="height:32px">
						<td>{$list.id}</td>
						<td>
							<if condition="$list.tid eq 1">
								功能选择
							<elseif condition="$list.tid eq 2"/>
								行业分类
							<else/>
								颜色分类
							</if>
						</td>
						<td>{$list.name}</td>
						<td><a href="__CONTROLLER__/catemod/id/{$list.id}">修改</a>&#12288;<a href="__CONTROLLER__/catedel/id/{$list.id}" onclick="if (confirm('确定要删除吗？')) return true; else return false;">删除</a></td>
					</tr>
				</foreach>
			<else />
				<tr style="height:32px"><td colspan="9">暂无记录！</td></tr>
			</if>
			</tbody>
		</table>
		<div class="yellow">{$pageshow}</div>
    </div>

<script type="text/javascript">
$('.imgtable tbody tr:odd').addClass('odd');
</script>
</block>